<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>document</title>
<style type="text/css">
#div1{width: 100px;height: 100px;}
</style>
</head>
<body>
	<form id="box">
		<input type="text">
		<input type="text">
		<input type="submit" value="提交" />
		<input type="reset" value="重置" />	
	</form>
<script type="text/javascript">
	var box = document.getElementById('box')
	
	box.onreset = function(){
		alert(1)
	}
	


</script>
</body>
</html>